import request from '@/utils/request'

export function getDepartmentList(limit, page, params) {
  return request({
    url: `group/find/name/${limit}/${page}`,
    method: 'get',
    params
  })
}

export function addDepartment(data) {
  return request({
    url: 'group/make',
    method: 'POST',
    data
  })
}

export function delDepartment(gid) {
  return request({
    url: `group/${gid}`,
    method: 'DELETE'
  })
}
